const ajax = window.ajaxbusinessAssets;
const ajaxProperty = window.ajaxBase;
//工作列表
export const apiWorkList = (params) => ajax.request(`/v1/business/work/info/list`, 'post', params, {
  showLoading: true
});

//工作统计
export const apiWorkStatistics = (params) => ajax.request(`/v1/business/work/info/statistics`, 'post', params, {
  showLoading: true
});

//工作新增
export const apiWorkAdd = (params) => ajax.request(`/v1/business/work/info/create`, 'post', params, {
  showLoading: true
});

//工作新增
export const apiWorkUpdate = (params) => ajax.request(`/v1/business/work/info/update`, 'post', params, {
  showLoading: true
});

//工作详情
export const apiWorkInfo = (params) => ajax.request(`/v1/business/work/info/detail?primaryKey=${params}`, 'get', '', {
  showLoading: true
});

//工作详情
export const apiUpdateEvolve = (params) => ajax.request(`/v1/business/work/progress/create`, 'post', params, {
  showLoading: true
});

//部门下拉
export const apiOrgList = (params) => ajax.request(`/v1/business/org/list`, 'post', params, {
  showLoading: true
});

//工作负责人下拉
export const apiManagerList = (params) => ajax.request(`/v1/basic/project/manager/list`, 'post', params, {
  showLoading: true
});

//会议纪要列表
export const apiMeetingList = (params) => ajax.request(`/v1/basic/meeting/summary/list`, 'post', params, {
  showLoading: true
});

//会议纪要添加
export const apiMeetingAdd = (params) => ajax.request(`/v1/basic/meeting/summary/create`, 'post', params, {
  showLoading: true
});

//会议纪要更新
export const apiMeetingUpdate = (params) => ajax.request(`/v1/basic/meeting/summary/update`, 'post', params, {
  showLoading: true
});

//会议纪要详情
export const apiMeetingInfo = (params) => ajax.request(`/v1/basic/meeting/summary/detail`, 'post', params, {
  showLoading: true
});

//完成/延续/取消/暂停
export const apiMeetingDo = (params) => ajax.request(`/v1/basic/meeting/summary/operate`, 'post', params, {
  showLoading: true
});

//评论列表
export const apiCommentList = (params) => ajax.request(`/v1/business/comment/info/commentList`, 'post', params, {
  showLoading: true
});

//评论
export const apiComment = (params) => ajax.request(`/v1/business/comment/info/create`, 'post', params, {
  showLoading: true
});

//评论回复
export const apiCommentReply = (params) => ajax.request(`/v1/business/comment/info/replay`, 'post', params, {
  showLoading: true
});

//草稿
export const apiDraft = (params) => ajax.request(`/v1/business/work/info/listDraftUnionMeeting`, 'post', params, {
  showLoading: true
});

//已办工作
export const apiTodoList = (params) => ajaxProperty.request(`/v1/business/todo/list`, 'post', params, {
  showLoading: true
});
//项目
export const projectList=(params)  =>  ajax.request(`/v1/basic/project/project/list`, 'post', params, { showLoading: true });

// 工作排名
export const workRankList=(params)  =>  ajax.request(`/v1/business/work/info/rank/list`, 'post', params, { showLoading: true });

// 结束工作事件
export const apiOverWork=(params)  =>  ajax.request(`/v1/business/work/info/complete`, 'post', params, { showLoading: true });
